<template>
	<view>
		<uni-list class="Clear_cache">
			<uni-list-item title="清除缓存"  rightText="18.7M"></uni-list-item>
			<uni-list-item title="登录密码"></uni-list-item>
			<uni-list-item title="支付密码"></uni-list-item>
			<uni-list-item title="地址管理"></uni-list-item>
		</uni-list>
		<uni-list class="Clear_cache">
			<uni-list-item title="意见反馈" to="./feedback" link></uni-list-item>
		</uni-list>
		<uni-list class="Clear_cache">
			<uni-list-item title="退出登录" @click="edit" link></uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		methods:{
			edit(){
				console.log(555)
				console.log(uni.getStorageSync('token'))
				uni.setStorageSync('token','')
				console.log(uni.getStorageSync('token'))
				if(uni.getStorageSync('token')==''){
					uni.showToast({
						// title:'暂未登陆,快去登陆吧！',
						title:'',
						icon:'none'
					})
					uni.navigateTo({
						url: '/pages/login/login'
					})
				}
				}
		},
	}
</script>

<style>
	page{
		background: #F7F7F7;
	}
	.Clear_cache{
		margin-top: 21rpx;
	}
</style>
